package com.woniuxy.microfundservice.dao;


import com.woniuxy.bean.BillBean;
import com.woniuxy.microfundservice.bean.MemberFundAccount;
import com.woniuxy.microfundservice.bean.info.FundFullInfo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import java.util.List;

/**
 * (MemberFundAccount)表数据库访问层
 *
 * @author makejava
 * @since 2021-04-12 19:11:45
 */
@Mapper
public interface MemberFundAccountDao {

    List<MemberFundAccount> selectByUser(@Param("userName") String userName);

    int addOne( BillBean billBean);

    MemberFundAccount selectExit(@Param("memberAccount") String memberAccount, @Param("fundId")Integer fundId);

    int increase(BillBean billBean);

    int sellThen(MemberFundAccount memberFundAccount);

    void updateDaily(FundFullInfo neInfos);

    void reduceShare(BillBean billBean);

    void reduceMoney(@Param("memberName") String memberName, @Param("productId") Integer productId,
                     @Param("redeem") double redeem, @Param("cost") double cost);
}